<div>
    <div>
        <div class="row">
            <div class="col-xs-12" style="max-height: 550px;overflow: scroll;">
                {{ form(config.application.backendUrl ~ '/video/ajaxVideoCategory/addVideoCategoryToObject?object_type=' ~ objectType ~ '&object_id=' ~ objectId, 'class': 'forms-horizontal' , 'id' : 'formSelectVideoCategory') }}
                <div id="listSelectVideoCategorysToObject">
                    <table class="table table-striped table-bordered table-hover">
                         <thead>
                            <tr>
                                 <th class="center">
                                    <label class="position-relative">
                                        <input type="checkbox" class="ace checkSelectVideoCategoryAll">
                                        <span class="lbl"></span>
                                    </label>
                                </th>
                                <th>Thể loại</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for category in videoCategories %}
                                <tr>
                                    <td class="center">
                                        <label class="position-relative">
                                            <input type="checkbox" class="ace selectVideoCategory" name="selectVideoCategory[]" value="{{ category.getId() }}" text="{{ category.getName() }}">
                                            <span class="lbl"></span>
                                        </label>
                                    </td>
                                    <td>{{ category.getName() }}</td>
                                </tr>
                            {% endfor %}
                            </tbody>
                    </table>
                </div>
                {{ hiddenField( ['object_type','value': objectType]) }}
                {{ end_form() }}
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
        <button type="button" data-loading-text="<i class='ace-icon fa fa-spinner fa-spin white bigger-125'></i>Đang tải..." class="btn btn-primary btnAddVideoCategoryToObject">Thêm</button>
    </div>
</div>
